package com.webtest.jsptest;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/7/24 15:42
 */
public class TestServlet2 extends HttpServlet {
    private static final long serialVersionUID = -4375362264047480444L;

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("test servlet: " + req.getAttribute("name"));
        System.out.println("This is forward target");
    }
}
